package com.xinyun.traceability.service;

import com.github.pagehelper.PageInfo;
import com.xinyun.traceability.enity.dto.CommodityDTO;
import com.xinyun.traceability.enity.po.Commodity;

import java.util.List;

public interface CommodityService {
    PageInfo<Commodity> queryCommodityPage(CommodityDTO commodityDTO);

    void saveCommodity(Commodity commodity);

    Commodity selectCommodityByUuid(String uuid);

    void updateByPrimaryKeySelective(Commodity commodity);

    List<Commodity> selectCommodityByCommodityDTO(CommodityDTO commodityDTO);

    Commodity selectCommodityByPrimaryKey(Integer id);
}
